const formRules = {
  version: [
    {required: true, message: '请输入版本号', trigger: 'blur'},
    {message: '只允许输入数字和字符', pattern: /^[0-9]([0-9]|\.)*[0-9]$/}
  ],
  name: [
    {required: true, message: '请输入版本号', trigger: 'blur'},
    {max: 50, message: '标题不能超过50个字', trigger: 'blur'}
  ],
  focusUpdateMin: [
    {required: true, message: '请输入最低版本号', trigger: 'blur'},
    {message: '只允许输入数字和字符', pattern: /^[0-9]([0-9]|\.)*[0-9]$/}
  ],
  focusUpdateMax: [
    {required: true, message: '请输入最高版本号', trigger: 'blur'},
    {message: '只允许输入数字和字符', pattern: /^[0-9]([0-9]|\.)*[0-9]$/}
  ],
  description: [
    {required: true, message: '请输入版本描述', trigger: 'blur'}
  ]
}

export {
    formRules
}
